/**
 * Created by Administrator on 2017/5/21 0021.
 */
// 剩余时间
function getTime(obj) {
    var Nowdate = new Date()
    var Enddate = new Date("2017/6/2")
    var t = Enddate.getTime() - Nowdate.getTime()
    var d=parseInt(t/1000/3600/24)
    var h=parseInt(t/1000/60/60%24)
    var m=parseInt(t/1000/60%60)
    var s=parseInt(t/1000%60)

    obj.text("剩余："+d+"天"+h+"时"+m+"分"+s+"秒")
}

setInterval(function () {
    getTime($(".last-time"))
},0)